<script>

function myNew(){
    let obj = {}
    Constructor = [].shift.call(arguments)
    obj.__proto__ = Constructor.prototype
    let ret = Constructor.apply(obj, arguments)
    return typeof ret === 'object' ? ret : obj
}
function Person(name, age){
    this.name = name
    this.age = age
}
let yasuo = myNew(Person, 'yasuo', 17)
</script>